package com.zhanghs.contentcenter.exception;

/**
 * @Author zhanghongshan
 * @date 2021/10/3 9:43 上午
 */
public class CommonException extends RuntimeException {
    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public CommonException(Integer code,String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public CommonException(Integer code,String message,Throwable cause) {
        super(message, cause);
        this.code = code;
        this.message = message;
    }
}
